package com.wiretap.dao;

import com.wiretap.po.User;
import com.wiretap.util.Pager;

public interface UserDao {

	void addUser(User user) throws Exception;

	int updateUser(User user) throws Exception;

	User getUserByPhone(String phone) throws Exception;

	Pager<User> getAllUser(String adminId,boolean isSuperAdmin,int currentPage, int pageSize) throws Exception;

	Pager<User> searchUserByPhone(String phone, int currentPage, int pageSize)
			throws Exception;

	int removeUser(String[] ids) throws Exception;

	User getUserById(String id) throws Exception;

	long getUserCount() throws Exception;

	int setUserVisibility(String[] ids, boolean visibility) throws Exception;
	
	int clearUserAdminInfo(String adminId) throws Exception;
	
	int changeUserOwner(String[] uids,String adminId) throws Exception;
}
